package com.petRescueCenter.demo.user.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.petRescueCenter.demo.user.entity.User;
import com.petRescueCenter.demo.user.entity.dto.UserDTO;

public interface IUserService {
	public User save(User entity);

	public User findById(Long id);

	public boolean existsById(Long id);

	public long count();

	public void deleteById(Long id);

	public void deleteAll(Long[] ids);

	public Page<UserDTO> findAll(Specification<User> spec, Pageable pageable);

	public boolean existsByName(String name);

	public User findByName(String name);

}
